package model.entity;

public class User {
    int id;
    String username;
    String password;
    String name;
    String phone;
    String gender;
    String avatar;
    String creatTime;

    public User() {
    }

    public User(int id, String username, String password, String name, String phone, String gender, String avatar, String creatTime) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.name = name;
        this.phone = phone;
        this.gender = gender;
        this.avatar = avatar;
        this.creatTime = creatTime;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return username
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 设置
     * @param phone
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 获取
     * @return gender
     */
    public String getGender() {
        return gender;
    }

    /**
     * 设置
     * @param gender
     */
    public void setGender(String gender) {
        this.gender = gender;
    }

    /**
     * 获取
     * @return avatar
     */
    public String getAvatar() {
        return avatar;
    }

    /**
     * 设置
     * @param avatar
     */
    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    /**
     * 获取
     * @return creatTime
     */
    public String getCreatTime() {
        return creatTime;
    }

    /**
     * 设置
     * @param creatTime
     */
    public void setCreatTime(String creatTime) {
        this.creatTime = creatTime;
    }

    public String toString() {
        return "user{id = " + id + ", username = " + username + ", password = " + password + ", name = " + name + ", phone = " + phone + ", gender = " + gender + ", avatar = " + avatar + ", creatTime = " + creatTime + "}";
    }
}
